package top.dark.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.dark.common.utils.PageUtils;
import top.dark.product.entity.AttrGroupEntity;
import top.dark.product.vo.AttrGroupRespVo;
import top.dark.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lijiao
 * @email DarknessShadow11@outlook.com
 * @date 2021-02-01 10:42:11
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long categoryId);

    List<AttrGroupRespVo> getGroupAndAttrByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getGroupAndAttrBySpuId(Long spuId, Long catalogId);

}

